package com.zh.admin.product.dao;

import com.zh.pojo.Products;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * company: www.abc.com
 * Author: Administrator
 * Create Data: 2021/5/28 0028
 */
public interface ProductsAdminDao {

    int insertProducts(Products products);

    int updateProducts(Products products);

    int deleteProductsById(String id);

    List<Products> selectProductsAll();

    Products selectProductsById(String id);

    List<Products> selectProductsCondition(@Param("products") Products products,@Param("minprice") double minprice,@Param("maxprice") double maxprice);

    List<Products> selectHotData(@Param("year") Integer year,@Param("month") Integer month);

}
